<?php
	/**
	 * Inicialização do smarty
	 * Author: Bruno Ramos <contato [AT] brunoramos [DOT] eti [DOT] br>
	 * File: smarty.init.php
	 * Version: 1.0
	 */
	
	
	
	// inicializa smarty
	$smarty = new Smarty;
	$smarty->setCompileDir('cache');
	
	// carrega configuracoes
	$smarty->configLoad('configs/config.conf','Database');
	$config = $smarty->getconfigVars();
	
	// define diretorios e propriedades do template
	$smarty->setTemplateDir('templates/'.$config['template']);
	$smarty->setCompileDir('templates/'.$config['template'].'/templates_c');
	$smarty->setCacheDir('templates/'.$config['template'].'/cache');
	$smarty->setPluginsDir('libs/plugins');
	$smarty->caching = false;
	$smarty->cache_lifetime = 86400;

	
?>
